package com.psy.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author 梁学儒
 * @Date 2022/6/5 9:23
 * @Version 1.0\
 *
 * name : 值班、初访、咨询时间调度
 * period : 时长
 * rest : 间隔
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Period {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer period;

    private Integer rest;

    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
}
